package com.zjhcsoft.auth.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 渠道表
 * </p>
 *
 * @author wzya
 * @since 2021-03-29
 */
@TableName("CHANNEL")
public class Channel implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 渠道唯一标识
     */
      @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 渠道标识 渠道标识
     */
    @TableField("CHANNEL_CODE")
    private String channelCode;

    /**
     * 渠道名称 渠道名称
     */
    @TableField("CHANNEL_NAME")
    private String channelName;

    /**
     * 默认登录类型 逗号隔开，如1,2,3
     */
    @TableField("DEFAULT_CREDENTIAL_TYPE")
    private String defaultCredentialType;

    /**
     * 创建时间
     */
    @TableField("CREATED_TIME")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @TableField("UPDATED_TIME")
    private LocalDateTime updatedTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    public String getDefaultCredentialType() {
        return defaultCredentialType;
    }

    public void setDefaultCredentialType(String defaultCredentialType) {
        this.defaultCredentialType = defaultCredentialType;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }

    public LocalDateTime getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(LocalDateTime updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "Channel{" +
        "id=" + id +
        ", channelCode=" + channelCode +
        ", channelName=" + channelName +
        ", defaultCredentialType=" + defaultCredentialType +
        ", createdTime=" + createdTime +
        ", updatedTime=" + updatedTime +
        "}";
    }
}
